From: Keir Fraser Date: Tue, 17 Mar 2009 15:29:57 +0000 (+0000) Subject: Revert debugging patch c/s 19344. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13992^2~51 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=95b81d6a804d1cded0dd86318ccd315268cbfeb6;p=xen.git Revert debugging patch c/s 19344. Signed-off-by: Keir Fraser --- diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c index fbc75cbdde..eb07404e7a 100644 --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -403,9 +403,6 @@ static struct page_info *alloc_heap_pages( for ( i = 0; i < (1 << order); i++ ) { /* Reference count must continuously be zero for free pages. */ - if ( pg[i].count_info != 0 ) - printk("** %s:%d -- %u/%u %lx\n", __FILE__, __LINE__, - i, 1 << order, pg[i].count_info); BUG_ON(pg[i].count_info != 0); if ( pg[i].u.free.need_tlbflush ) @@ -530,10 +527,7 @@ static void free_heap_pages( * in its pseudophysical address space). * In all the above cases there can be no guest mappings of this page. */ - if ( pg[i].count_info & PGC_offlined ) - printk("** %s:%d -- %u/%u %lx\n", __FILE__, __LINE__, - i, 1 << order, pg[i].count_info); - BUG_ON(pg[i].count_info & PGC_offlined); + ASSERT(!(pg[i].count_info & PGC_offlined)); pg[i].count_info &= PGC_offlining | PGC_broken; if ( pg[i].count_info & PGC_offlining ) { diff --git a/xen/common/sysctl.c b/xen/common/sysctl.c index 69604cebce..70da626416 100644 --- a/xen/common/sysctl.c +++ b/xen/common/sysctl.c @@ -237,8 +237,6 @@ long do_sysctl(XEN_GUEST_HANDLE(xen_sysctl_t) u_sysctl) uint32_t *status, *ptr; unsigned long pfn; - BUG(); - ptr = status = xmalloc_bytes( sizeof(uint32_t) * (op->u.page_offline.end - op->u.page_offline.start + 1));